<?php $url = segment($_SERVER['REQUEST_URI'], TRUE); ?>
<div title="Organize" id="div-organize">
	<table cellspacing="0" cellpadding="0" border="0">
		<tbody>
			<tr>
				<td class="label"><label for="page_category"><?php echo __('Categories') ?></label></td>
				<td class="field"><input type="text" value="" size="100" name="page[category]" maxlength="100" id="page_category" class="textbox"/></td>
			</tr>
			<tr>
				<td class="label"></td>
				<td class="field">
				<?php foreach($organize->getCategories($url[0]) as $id => $name): ?>
					<label for="<?php echo $name; ?>">
						<input id="<?php echo $name; ?>" name="<?php echo $name; ?>" type="checkbox" value="<?php echo $id; ?>" /> <?php echo $name; ?>
					</label>
				<?php endforeach ?>
				<td>
			</tr>
		</tbody>
	</table>
</div>